<!DOCTYPE html>
<html lang="en">
<head>
	<{include file="header.html"}>
	<title>题库-德安信会计在线教育平台</title>
	<style>
		.sub_box{width: 100%; padding:20px 0; border-bottom: 1px dashed #eee;}
		.sub_title{width:200px; height: 150px; line-height: 150px; text-align: center;float:left;}
		.sub_info{float:left; width: 600px; margin-left: 40px; color: #000;}
		.sub_info p{padding:10px 0;}
	</style>
</head>
<body>
<div class="wrap">
	<!--star left-->
	<div class="column">
		<{include file="../user/left_menu.html"}>
	</div>
	<div id="ContMianBox">
		<!--star子栏目-->
		<div class="sub-colum">
		    <div class="tit">题库</div>
		    <ul>
		    	<li class="curr"><a href="/user/tiku/tlist">我的题库</a></li>
		    </ul>
		</div>
		<!--end子栏目-->
		<!--end left-->
		<div class="container narrow">
		    <!--star conter-->
		    <div class="cetContent">
				<div class="tit p-lr20">
				    <span class="curr">我的题库</span>
				    <!-- <span><a href="/user/learn_card" style="color: #FF5722; font-size: 20px; float: right;">找不到想做的题库？点此查看我的学习卡中可使用的其他题库。</a></span> -->
				</div>
				<!--star内容区域-->
				<div class="mainScroll">
				    <div class="mainContainer line-all">
				        <!--star tabMainCont-->
				        <div class="tabMainCont">
				        	<blockquote class="layui-elem-quote"><p><a href="/user/learn_card" style="color: #FF5722; font-size: 20px; text-align: right;">找不到想做的题库？点此查看我的学习卡中可使用的其他题库。</a></p></blockquote>
				            <!--star会员管理-->
				            <{if $subject_list|count > 0}>
		                	<div class="fix">
								<{foreach from=$subject_list item=item key=key name=foo}>
								<div class="sub_box">
									<div class="fs22 c-FFFFFF sub_title" style="background-image:url(<{if $smarty.foreach.foo.iteration%3 == 1}>/static/www/temp/img_360150_01.png<{elseif $smarty.foreach.foo.iteration%3 == 2}>/static/www/temp/img_360150_02.png<{elseif $smarty.foreach.foo.iteration%3 == 0}>/static/www/temp/img_360150_03.png<{/if}>);">
										<a style="color:#FFF;" href="/user/tiku/practice_index/<{$item.id}>"><{$item.title}></a>
									</div>
									<div class="fs22 c-FFFFFF sub_info">
										<p style="font-size: 20px; font-weight: bold;"><{$item.title}></p>
										<p>答题正确率：<{$item.right_rate|ceil}>%</p>
										<p>
										剩余有效期：
										<{if !empty($item.effective_day) AND $item.effective_day > 0}>
										<{$item.effective_day|ceil}>天
										<{else}>
											<{if $item.order_status <= 0}>
											已过期
											<{else}>
											-
											<{/if}>
										<{/if}></p>
										<!-- <p>剩余有效期：
											<{if !empty($item.effective_day) AND $item.effective_day > 0}>
												<{$item.effective_day|ceil}>天
											<{else}>
												<{if !empty($item.iid)}>
												已过期
												<{else}>
												未购买
												<{/if}>
											<{/if}>
										</p> -->
									</div>
									<div style="float:left;">
										<div class="layui-input-block">
											<{if $item.order_status == 1}>
											已付款，请致电 <{$school_info.link_tel}> 开通 
											<{else}>
												<a class="layui-btn" href="/user/tiku/practice_index/<{$item.id}>">进入题库</a>
												<{if $item.effective_day <= 0}>
												<a class="layui-btn" href="/order/buy/<{$item.id}>/4">重新购买</a>
												<{elseif $item.effective_day <= 1}>
												<a class="layui-btn" href="/order/buy/<{$item.id}>/4">续期</a>
												<{/if}>
											<{/if}>
										</div>
									</div>
									<div style="clear: both;"></div>
								</div>
								<{/foreach}>
							</div>
							<{else}>
							<div style="width: 100%;text-align: center; font-size: 20px; font-weight: bold;">
								<p style="padding:20px 0;">您现在还没有题库，去看看有喜欢的题库吗？挑一下</p>
								<p><a class="layui-btn" href="/topic">查看所有题库</a></p>
							</div>
							<{/if}>
			                <div class="pages p-tb20" style="text-align:right;">
			                    <!-- <{$pagination}> -->
			                </div>
			            </div>
			            <!--star会员管理-->
			        </div>
				        <!--end tabMainCont-->
		        </div>
		    </div>
		</div>
	</div>
</div>
</body>
</html>